hysop.backend.host.host_allocator module

class hysop.backend.host.host_allocator.HostAllocator(verbose=None)[source]

Bases: AllocatorBase

Allocator that allocates HostBuffers

Initialize a TaggedObject with a tag prefix/postfix/formatter, all optional.

allocate(nbytes, **kwds)[source]

Allocate nbytes bytes of memory. No minimal memory alignment is guaranteed. If allocation fails, this method has to raise a MemoryError.

is_on_host()[source]

Return true if buffers are allocated in host memory.

max_alloc_size()[source]

Max allocatable size in bytes.

memory_pool(name, **kwds)[source]

Construct a memory pool from this allocator.

prefix()[source]

Prefix for logs